The xentrace_format script doesn't work on x86/64. Python pads the input
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 18 Nov 2005 16:54:23 +0000 (17:54 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Fri, 18 Nov 2005 16:54:23 +0000 (17:54 +0100)
commit1f39a6dc5e1dc869fc25c40142c65e948f5ad13c
tree590d56bf815a988315388bb7f18af1049e39a277
parent931a2bf97fa446879e3df8d8cd679a3d652ee707
The xentrace_format script doesn't work on x86/64. Python pads the input
structure because the first field is 32 bits and the next is 64 bits,
whereas x86-32 doesn't pad. The quick fix is to read the cpu id
separately as a 32bit value, then read the rest of the trace record.
Here is a little patch that does that. Tested on x86/32 SMP and x86/64.

Signed-off-by: Rob Gardner <rob.gardner@hp.com>
tools/xentrace/xentrace_format